package com.mew.game.core.common.handler;

import com.alibaba.nacos.api.config.ConfigType;
import com.alibaba.nacos.api.config.annotation.NacosConfigurationProperties;
import com.alibaba.nacos.api.config.annotation.NacosProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@NacosConfigurationProperties(dataId = "mew-strategy-config.yaml", type = ConfigType.YAML, autoRefreshed = true)
@Data
@ToString
@NoArgsConstructor
public class StrategyConfig {

    @NacosProperty(value = "bonus.slots.max")
    private int slotsMax;

    @NacosProperty(value = "bonus.slots.mul")
    private int slotsMul;


    public long goldMax(){
        return this.slotsMax * 10000;
    }

}
